import service from '@/utils/request'

// @Tags InWarehouseInfo
// @Summary 创建InWarehouseInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.InWarehouseInfo true "创建InWarehouseInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /InWarehouse/createInWarehouseInfo [post]
export const createInWarehouseInfo = (data) => {
     return service({
         url: "/InWarehouse/createInWarehouseInfo",
         method: 'post',
         data
     })
 }


// @Tags InWarehouseInfo
// @Summary 删除InWarehouseInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.InWarehouseInfo true "删除InWarehouseInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /InWarehouse/deleteInWarehouseInfo [delete]
 export const deleteInWarehouseInfo = (data) => {
     return service({
         url: "/InWarehouse/deleteInWarehouseInfo",
         method: 'delete',
         data
     })
 }

// @Tags InWarehouseInfo
// @Summary 删除InWarehouseInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除InWarehouseInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /InWarehouse/deleteInWarehouseInfo [delete]
 export const deleteInWarehouseInfoByIds = (data) => {
     return service({
         url: "/InWarehouse/deleteInWarehouseInfoByIds",
         method: 'delete',
         data
     })
 }

// @Tags InWarehouseInfo
// @Summary 更新InWarehouseInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.InWarehouseInfo true "更新InWarehouseInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /InWarehouse/updateInWarehouseInfo [put]
 export const updateInWarehouseInfo = (data) => {
     return service({
         url: "/InWarehouse/updateInWarehouseInfo",
         method: 'put',
         data
     })
 }


// @Tags InWarehouseInfo
// @Summary 用id查询InWarehouseInfo
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.InWarehouseInfo true "用id查询InWarehouseInfo"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /InWarehouse/findInWarehouseInfo [get]
 export const findInWarehouseInfo = (params) => {
     return service({
         url: "/InWarehouse/findInWarehouseInfo",
         method: 'get',
         params
     })
 }


// @Tags InWarehouseInfo
// @Summary 分页获取InWarehouseInfo列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取InWarehouseInfo列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /InWarehouse/getInWarehouseInfoList [get]
 export const getInWarehouseInfoList = (params) => {
     return service({
         url: "/InWarehouse/getInWarehouseInfoList",
         method: 'get',
         params
     })
 }